package ee.mtiidla.data;

import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;

/**
 * Created by Marko on 12.10.2014.
 */
@XmlAccessorType(XmlAccessType.FIELD)
public class Club {

	@XmlAttribute(name = "type")
	private String type;

	@XmlAttribute(name = "code")
	private String code;

	@XmlAttribute(name = "nation")
	private String nation;

	@XmlAttribute(name = "name")
	private String name;

	@XmlAttribute(name = "clubid")
	private long clubId;

	@XmlElementWrapper(name="ATHLETES")
	@XmlElement(name="ATHLETE")
	private List<Athlete> athletes;

	@XmlElementWrapper(name="RELAYS")
	@XmlElement(name="RELAY")
	private List<Relay> relays;

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getNation() {
		return nation;
	}

	public void setNation(String nation) {
		this.nation = nation;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public long getClubId() {
		return clubId;
	}

	public void setClubId(long clubId) {
		this.clubId = clubId;
	}

	public List<Athlete> getAthletes() {
		return athletes;
	}

	public void setAthletes(List<Athlete> athletes) {
		this.athletes = athletes;
	}

	public List<Relay> getRelays() {
		return relays;
	}

	public void setRelays(List<Relay> relays) {
		this.relays = relays;
	}
}
